/*
 * Copyright (c) 2023, 2023,yzc.cn All rights reserved.
 *
 */
package cn.yzc.controller;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.servlet.ModelAndView;

import java.util.Date;

/**
 * <p>Project: SpringMVCPro - HelloController</p>
 * <p>Powered by yzc On 2023-10-28 16:33:41</p>
 * <p>描述：<p>
 *
 * @author yzc [yzc0415@126.com]
 * @version 1.0
 * @since 17
 */
@Controller
public class HelloController {


    @RequestMapping("show")
    public ModelAndView hello(){
        System.out.println("hello 你好");

        ModelAndView show = new ModelAndView("show");
        show.addObject("date" ,new Date());
        return show;

    }
}
